﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CRM_WF
{
    class Notation
    {


        public int calculerScore(List<List<Telerik.WinControls.UI.RadRadioButton>> Note)
        {
            int score = 0; int temp = 0;
            for (int i = 0; i < 4; i++)
            {
                foreach (Telerik.WinControls.UI.RadRadioButton radio in Note[i])
                {

                    switch (radio.IsChecked)
                    {
                        case true: score += temp;
                            break;
                        case false: temp++;
                            break;
                    }
                }
            }
            return score;
        }

    }
}
